/**
 * @param {Egg.Application} app - egg application
 */
module.exports = (app) => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  router.get('/api/overseas/regions', controller.home.region);
  router.get('/api/overseas/get_wjx_params', controller.home.getWjxParams);
  router.get('/api/overseas/get_wjw_params', controller.home.getWjwParams);
  router.post('/api/overseas/submit', controller.home.submit);
  router.post('/api/overseas/submit_v2', controller.home.submit_v2);
};
